<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="com.lmpop.trade.ts_area.*" %>
<%@ page import="java.util.*" %>
<% 
	String area_id="";
	if(request.getParameter("area_id")!=null) area_id = request.getParameter("area_id");
	Ts_areaInfo ts_areaInfo = new Ts_areaInfo();
	List list = ts_areaInfo.getListByPk(area_id);
	Hashtable map = new Hashtable();
	if(list!=null && list.size()>0) map = (Hashtable)list.get(0);

	String area_name="",up_area_id="",sort_no="";
	if(map.get("area_name")!=null) area_name = map.get("area_name").toString();
	if(map.get("up_area_id")!=null) up_area_id = map.get("up_area_id").toString();
	if(map.get("sort_no")!=null) sort_no = map.get("sort_no").toString();
	
	String s_areaname = "",up_area_ids = "",back_area_id = "";
	
	if(request.getParameter("s_areaname")!=null && !request.getParameter("s_areaname").equals("")){
		s_areaname = new String(request.getParameter("s_areaname").trim().getBytes("utf-8"));
	}
	if(request.getParameter("up_area_id")!=null && !request.getParameter("up_area_id").equals("")){
		up_area_ids = request.getParameter("up_area_id");
    }	
	String iStart = "0";
	if(request.getParameter("iStart")!=null) iStart = request.getParameter("iStart");

	String url = "/program/admin/area/index.jsp?s_areaname="+s_areaname+"&up_area_id="+up_area_ids+"&iStart="+iStart;
%>
<html>
  <head>
    <title>区域管理</title>
	<link href="/program/admin/index/css/style.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="area.js"></script>
</head>

<body>
	<h1>修改区域</h1>
	<form action="/doTradeReg.do" method="post" name="addForm">
	<table width="100%" cellpadding="1" cellspacing="1" border="0" class="listtab">
		
		<tr>
			<td align="right" width="10%">
				区域名称<font color="red">*</font>
			</td>
			<td><input name="area_name" id="area_name" value="<%=area_name%>" maxlength="100" type="text" /></td>
		</tr>

		<input name="up_area_id" id="up_area_id" value="<%=up_area_id %>" type="hidden" value="<%=up_area_id%>"/>

		<tr>
			<td align="right" width="10%">
				排序<font color="red">*</font>
			</td>
			<td><input name="sort_no" id="sort_no" value="<%=sort_no %>" type="text" size="2" maxlength="2" onKeyUp="if(!/^[0-9][0-9]*$/.test(this.value))this.value=''"/></td>
		</tr>
		
	</table>
	
	<table width="100%" cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td align="center">
				<input type="hidden" name="bpm_id" value="2071" />
	  			<input type="hidden" name="area_id" value="<%=area_id %>" />
				<input type="hidden" name="jumpurl" value="<%=url%>" />
				<input type="submit" class="buttoncss" name="tradeSub" value="提交" onclick="return checkInfo()"/>&nbsp;&nbsp;
				<input type="button" class="buttoncss" name="tradeRut" value="返回" onclick="window.location.href='<%=url%>';"/>
			</td>
		</tr>
	</table>
	</form>
</body>

</html>